package cn.chen.design;

public class Singleton2 {

    private Singleton2(){}

    private static class SingletonWrapper{
        static Singleton2 instance = new Singleton2();
    }

    public static Singleton2 getInstance(){
        return  SingletonWrapper.instance;
    }

}
